package edu.whu.notepal.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * @author 陈磊
 * @TableName t_private_chat
 */
@TableName(value ="t_private_chat")
@Data
public class PrivateChat implements Serializable {
    @TableId
    private Long noteId;

    private Long publisherId;

    private Long visitorId;

    /**
     * 0-都没确认
     * 1-发布者单方确认
     * 2-拜访者单方确认
     * 3-双向确认
     */
    private Integer status;

    private Integer messageCount;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}